package main

import (
	"math"
	"sort"
)

func findValueOfPartition(nums []int) int {
	sort.Ints(nums)
	// 相邻元素差值最小
	res := math.MaxInt
	for i:=1;i<len(nums);i++ {
		res = min(res, nums[i]-nums[i-1])
	}
	return res
}